CREATE TABLE [dbo].[TRZONA_UBIC]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_ZONA] [dbo].[TD_VC_003] NOT NULL,
[CO_UBIC_GEOG] [dbo].[TD_VC_006] NOT NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TRZONA_UB__CO_US__1E105D02] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TRZONA_UB__FE_US__1F04813B] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TRZONA_UB__CO_US__1FF8A574] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TRZONA_UB__FE_US__20ECC9AD] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TRZONA_UBIC] ADD CONSTRAINT [PK__TRZONA_U__05384E522E1CA799] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_ZONA], [CO_UBIC_GEOG]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TRZONA_UBIC] ADD CONSTRAINT [FK__TRZONA_UBIC__2A6C1246] FOREIGN KEY ([CO_EMPR], [CO_ZONA]) REFERENCES [dbo].[TTZONA] ([CO_EMPR], [CO_ZONA])
GO
